/**
 * 作者: wgx
 * 日期: 2024-10-18 10:45:14
 * 备注: 模块开启
 */
package com.motu.monstercity.server.game.commondata.system;
import com.motu.monstercity.protocol.Common.PBSystemOpen;
import io.vertx.core.json.JsonObject;

public class SystemOpen extends SystemOpenModel {
    public SystemOpen(JsonObject obj) {
        super(obj);
    }

    public PBSystemOpen takeBuilder() {
        PBSystemOpen.Builder builder = PBSystemOpen.newBuilder();
        builder.setUnlockId(getId());
        builder.setUnlockType1(getUnlockType1());
        builder.setUnlockParam1(getUnlockParam1());
        builder.setUnlockType2(getUnlockType2());
        builder.setUnlockParam2(getUnlockParam2());
        builder.setNeedBuild(getNeedBuild());

        return builder.build();
    }
}
